import com.speljohan.rsbot.script.Random;
import com.speljohan.rsbot.script.wrappers.RSInterface;

public class ClickContinue extends Random {

	public String getAuthor() {
		return "Tahayassen, Speed";
	}

	public String getName() {
		return "Click Continue";
	}

	public double getVersion() {
		return 1.1;
	}

	public boolean activateCondition() {
		if (RSInterface.getInterface(740).getChild(3).isValid())
			return true;
		return RSInterface.getInterface(241).getChild(5).isValid();
	}

	public int loop() {
		if (RSInterface.getInterface(241).getChild(5).isValid())
			atInterface(241, 5);
		if (RSInterface.getInterface(740).getChild(3).isValid())
			atInterface(740, 3);
		wait(random(2500, 3500));
		return -1;
	}
}